<%-- 
    Document   : checkin
    Created on : Feb 9, 2012, 1:08:18 AM
    Author     : Anthony Ferrari
--%>

<%--
    Document   : checkout
    Created on : Feb 8, 2012, 11:37:52 PM
    Author     : Anthony
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>List of Reservations</title>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <link rel="stylesheet" type="text/css" href="css/menu.css" />
        <link rel="stylesheet" type="text/css" href="themes/table/blue/style.css" />
        <link rel="stylesheet" type="text/css" href="css/idealforms/idealforms.css"/>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/menu.js"></script>
        <script type="text/javascript" src="js/jquery.tablesorter.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                $("#myTable").tablesorter( {sortList: [[0,0], [0,1]]} );
            }
        );
        </script>
    </head>
    <body>
        <div id="main_container">
            <jsp:include page="loginheader.jsp"/>
            <div class="main_content">
                <jsp:include page="${sessionScope.menuChoice}" /> <!-- include home menu -->
                <div class="center_content">
                    <div class="left_content">
                    </div> <!-- end left content -->
                    <div class="right_content">
                        <h2>Update the Aircraft</h2>
                        <form id="myform" action="UpdateMe?planeID=${plane.id}&checkin=true" name="test" method="post">
                            <table>
                                <tr>
                                    <td>Model:</td>
                                    <td><input type="text" class="right" name="plane" value="${plane.model}"  disabled="disabled"> </td>

                                    <td>Manufacturer:</td>
                                    <td><input type="text" class="right" name="plane" value="${plane.manufacturer}" disabled="disabled"></td>
                                </tr>
                                <tr>
                                    <td>Type:</td>
                                    <td><input type="text" class="right" name="plane" value="${plane.aircraftType}" disabled="disabled"></td>

                                    <td>Tail Number:</td>
                                    <td><input type="text" class="right" name="plane" value="${plane.tailNumber}" disabled="disabled"></td>
                                </tr>
                                <tr>
                                    <td>Fuel Grade:</td>
                                    <td><input type="text" class="right" name="plane" value="${plane.fuelGrade}"disabled="disabled"></td>

                                    <td>Current Fuel:</td>
                                    <td><input type="text" class="right" name="plane" value="${plane.currentFuel}"></td>
                                </tr>
                                <tr>
                                    <td>Usable Fuel:</td>
                                    <td><input type="text" class="right" name="plane" value="${plane.usableFuel}"disabled="disabled"></td>

                                    <td>Oil Grade:</td>
                                    <td><input type="text" class="right" name="plane" value="${plane.oilGrade}"disabled="disabled"></td>
                                    <tr>
                                        <td>Oil Capacity:</td>
                                        <td><input type="text" class="right" name="plane" value="${plane.oilCapacity}"disabled="disabled"></td>

                                        <td>Current Oil:</td>
                                        <td><input type="text" class="right" name="plane" value="${plane.currentOil}"></td>
                                    </tr>
                                    <tr>
                                        <td>Hobbs Left Engine:</td>
                                        <td><input type="text" class="right" name="plane" value="${plane.hobbsLeftEngine}"></td>

                                        <td>Hobbs Last Overhaul</td>
                                        <td><input type="text" class="right" name="plane" value="${plane.hobbsLastOverhaul}"disabled="disabled"></td>
                                    </tr>
                                    <tr>
                                        <td>Date Last Overhaul:</td>
                                        <td><input type="text" class="right" name="plane" value="${plane.dateOverhaul}"disabled="disabled"></td>

                                        <td>Annual Date:</td>
                                        <td><input type="text" class="right" name="plane" value="${plane.dateAnnual}"disabled="disabled"></td>
                                    </tr>
                                    <tr>
                                        <td>Hobbs Last Hundred</td>
                                        <td><input type="text" class="right" name="plane" value="${plane.hobbsLastHundred}"disabled="disabled"></td>

                                        <td>Date Last Hundred</td>
                                        <td><input type="text" class="right" name="plane" value="${plane.dateHundred}"disabled="disabled"></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input type="submit" name="button" value="Update" />
                                        </td>
                                    </tr>
                            </table>
                        </form>
                    </div> <!-- end of right content -->
                </div>   <!--end of center content -->
                <div class="clear"></div>
            </div> <!--end of main content-->
            <div class="footer">
                <div class="left_footer"><a href="http://apycom.com/"></a>Red Team &copy;</div>
                <div class="right_footer"></div>
            </div> <!-- end footer -->
        </div> <!-- end main container -->
    </body>
</html>
